package com.foxnicweb.web.constants.enums;

import com.github.foxnic.api.constant.CodeTextEnum;
import com.github.foxnic.commons.reflect.EnumUtil;



/**
 * @since 2023-02-13 09:50:41
 * @author 李方捷 , leefangjie@qq.com
 * 从 select distinct code,name from sys_config WHERE deleted=0 and code like 'modules.com.foxnicweb.web.customer.%' 生成
 * 此文件由工具自动生成，请勿修改。若表结构变动，请使用工具重新生成
*/

public enum CustomerConfigEnum implements CodeTextEnum {
	;
	private String code;
	private String text;
	private CustomerConfigEnum(String code,String text)  {
		this.code=code;
		this.text=text;
	}
	
	public String code() {
		return code;
	}
	
	public String text() {
		return text;
	}
	
	/**
	 * 从字符串转换成当前枚举类型
	*/
	public static CustomerConfigEnum parseByCode(String code) {
		return (CustomerConfigEnum) EnumUtil.parseByCode(CustomerConfigEnum.values(),code);
	}
}